package ESTUDO.conjuntos;

public class TesteString {

	
	public static void main(String[] args) {
		String e1 = "XX";
		String e2 = new String("XX");
		
		if(e1 == e2)
		{
			System.out.println("igual");
		}
		else
		{
			System.out.println("not igual");
		}
		
		System.out.println(e1.hashCode()+" "+e2.hashCode());
		System.out.println(e1+" "+e2);
	}
}
